/**
 * Created by LXH on 2017/11/10.
 */
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);
import userInfo from './modules/userInfo'
import homeStore from './modules/homeStore'
import loginStore from './modules/loginStore'
import payStore from './modules/payStore'

const store = new Vuex.Store({
    // 定义状态
    state: {
        // picHead:'http://test.resource.vjuzhen.com/',// 测试版
        // picHead:'http://resource.wetuc.com', // 正式版
        picHead:'http://test.resource.vjuzhen.com/', //zhongke

        // apiUrl:'https://mini.dtfind.com/', //测试版
        // apiUrl:'http://mini.wetuc.com', //正式版
        apiUrl:'http://api.zke.dtfind.com/', //zhongke
        // apiUrl:'http://hyxesa.natappfree.cc', //测试

        logoUrl:'/src/assets/image/logo.png', //测试
        listFoot:[],
        fromPath:['home'],
        phoneNo:'',
        redirect_uri:{},
        msg:{},
        userId:'',
        replyId:'',
        replyName:'',
        type:'',
        shareData:{},

    },
    mutations:{
    },
    actions: {
    },
    modules: {
        homeStore: homeStore,
        loginStore: loginStore,  // 登录注册
        userInfo: userInfo,  // 登录注册
        payStore: payStore,  // 支付
    }
})
export default store